/**
 *Copyright (c) 2003, 2018, UMF and/or its affiliates. All rights reserved.
 */
package com.umf.b2b;

import com.umpay.dto.UMFResponse.Message;

/**
<p>Title:BaseBackNotify</p>  
<p>Description: ��̨֪ͨ����</p>
 */
public class BaseBackNotify {
	
	public String mer_id;
	
	public String version;
	
	public static String ret_code;

	public static String ret_msg;
	
	public static BaseBackNotify convertResult(Message<? extends BaseBackNotify> message,Class<? extends BaseBackNotify> clazz){
		if(message == null){
			 return null;
		}else if(message.getData() != null){
			message.getData().setRet_code(message.getMeta().getRet_code());
			message.getData().setRet_msg(message.getMeta().getRet_msg());
		}else{
			ret_code = message.getMeta().getRet_code();
			ret_msg = message.getMeta().getRet_msg();
		}
		if(message.getData() == null){
			return null;
		}else{
			return message.getData();
		}
	}

	public String getRet_code() {
		return ret_code;
	}

	public void setRet_code(String ret_code) {
		this.ret_code = ret_code;
	}

	public String getRet_msg() {
		return ret_msg;
	}

	public void setRet_msg(String ret_msg) {
		this.ret_msg = ret_msg;
	}

	public String getMer_id() {
		return mer_id;
	}

	public void setMer_id(String mer_id) {
		this.mer_id = mer_id;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

}
